﻿using Common.Infrastructure;
using System;
using System.Collections.Generic;
using System.Text;

namespace StatsData.Data.Entity
{
    /// <summary>
    /// csi
    /// </summary>
    public class t_csi : EntityBase
    {
        [EntityFieldLength(50)]
        public string line_code { get; set; }

        public string line_name { get; set; }

        public string line_name_en { get; set; }

        /// <summary>
        /// 判定日期
        /// </summary>
        [EntityFieldIndex]
        public DateTime curr_date { get; set; }

        /// <summary>
        /// 检验批
        /// </summary>
        [EntityFieldLength(50)]
        public string batch { get; set; }

        [EntityFieldLength(50)]
        public string type { get; set; }

        /// <summary>
        /// 检验开始时间
        /// </summary>
        public DateTime begin_time { get; set; }

        /// <summary>
        /// 检验结束时间
        /// </summary>
        public DateTime end_time { get; set; }

        /// <summary>
        /// 物料ID
        /// </summary>
        [EntityFieldLength(50)]
        public string item_no { get; set; }

        /// <summary>
        /// 销售单号
        /// </summary>
        [EntityFieldLength(20)]
        public string so_no { get; set; }

        /// <summary>
        /// 销售行号
        /// </summary>
        [EntityFieldLength(20)]
        public string so_item { get; set; }

        /// <summary>
        /// 生产订单号
        /// </summary>
        [EntityFieldLength(600)]
        public string pdt_no { get; set; }

        /// <summary>
        /// 客户简称
        /// </summary>
        [EntityFieldLength(50)]
        public string cust_no { get; set; }

        /// <summary>
        /// 判定代码
        /// </summary>
        [EntityFieldLength(50)]
        public string result_no { get; set; }

        /// <summary>
        /// 判定结果
        /// </summary>
        [EntityFieldLength(50)]
        public string result { get; set; }
    }
}
